<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ include file="/pages/jsp/internal/include.jsp" %>

<div class="inner_cont">
<h2><fmt:message key="title.userNew"/></h2>

<span class="note">
	
	<fmt:message key="page.newUser.description"/>
	
	<c:forEach items="${model.messages}" var="message">
	   	<div id="message"><fmt:message key="${message}"/></div>
	</c:forEach>
	
	<c:forEach items="${model.errors}" var="error">
	   	<div id="error">
	   		<fmt:message key="${error.key}">
	   			<fmt:param value="${error.param1}"/>
	   		</fmt:message>
	   	</div>
	</c:forEach>
</span>

<form id="userForm" class="form" method="post" action="<c:url value="/user/newUser.htm"/>">

	<table  class="tableForm" cellspacing="0" cellpadding="0" summary="0">
	   	<tr>
	    	<th scope="row"><fmt:message key="label.mail"/></th>
	     	<td><input type="text" name="mail" value="<c:out value="${model.user.mail}"/>"/></td>
	  	</tr>
   
	   <tr>
	     	<th scope="row"><label for="pw"><fmt:message key="label.password2"/></label></th>
	     	<td><input type="text" name="pwd" value="<c:out value="${model.user.pwd}"/>"/></td>
	   </tr>
   
	   <tr>
	     	<th scope="row"><label for="newsletter"><fmt:message key="label.newsletter"/></label></th>
	     	<td><input type="checkbox" name="newsLetter" checked/></td>
	   </tr>
   		
   	   <tr>
	     	<th scope="row"><label for="admin"><fmt:message key="label.activateUser"/></label></th>
	     	<td><input type="checkbox" name="activateUser" /></td>
	   </tr>
   
   		
	   <tr>
	     	<th scope="row"><label for="admin"><fmt:message key="label.admin"/></label></th>
	     	<td><input type="checkbox" name="admin" /></td>
	   </tr>
 	</table>
 	
 	<div class="action_bar">									         
 		<input type="button" class="puls" value="Salva" onclick="sendFormForAction('<c:url value="/user/newUser.htm"/>','userForm','body','insert');" />
 	</div>

</form>
</div>
	